From: Etienne Champetier Date: Mon, 6 Oct 2025 22:11:41 +0000 (-0400) Subject: cjson: bump minimum cmake version to 3.10 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=f09845f8db5fc0101c1f147d740f265b6cddfd7f;p=feed%2Fpackages.git cjson: bump minimum cmake version to 3.10 Starting cmake 4.0, anything under 3.5 produces an error, see https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version Use a patch instead of CMAKE_OPTIONS so we don't forget to remove this hack. Signed-off-by: Etienne Champetier --- diff --git a/libs/cjson/patches/900-cmake-4-compatibility.patch b/libs/cjson/patches/900-cmake-4-compatibility.patch new file mode 100644 index 0000000000..44e2caca56 --- /dev/null +++ b/libs/cjson/patches/900-cmake-4-compatibility.patch @@ -0,0 +1,9 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + set(CMAKE_LEGACY_CYGWIN_WIN32 0) +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.10) + + project(cJSON + VERSION 1.7.19